<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/gstDecoder.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('gstDecoder_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">gstDecoder.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="gstDecoder_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __GSTREAMER_DECODER_H__</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __GSTREAMER_DECODER_H__</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="gstUtility_8h.html">gstUtility.h</a>&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="videoSource_8h.html">videoSource.h</a>&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Event_8h.html">Event.h</a>&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="RingBuffer_8h.html">RingBuffer.h</a>&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">struct </span>_GstAppSink;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classgstDecoder.html">   50</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgstDecoder.html">gstDecoder</a> : <span class="keyword">public</span> <a class="code" href="classvideoSource.html">videoSource</a></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keyword">static</span> <a class="code" href="classgstDecoder.html">gstDecoder</a>* <a class="code" href="classgstDecoder.html#aa21be1ad8be0516974b4507cb49d4fbe">Create</a>( <span class="keyword">const</span> <a class="code" href="structvideoOptions.html">videoOptions</a>&amp; options );</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keyword">static</span> <a class="code" href="classgstDecoder.html">gstDecoder</a>* <a class="code" href="classgstDecoder.html#aa21be1ad8be0516974b4507cb49d4fbe">Create</a>( <span class="keyword">const</span> <a class="code" href="structURI.html">URI</a>&amp; resource, <a class="code" href="structvideoOptions.html#a99a95e988dcf46c0e9177abc7217cf8f">videoOptions::Codec</a> codec );</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        </div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <a class="code" href="classgstDecoder.html#a0e13e2625f959c1e612cb90e3d5720d0">~gstDecoder</a>();</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        </div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a7d318a13d6f96d436d47e09e6722d740">   72</a></span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">bool</span> <a class="code" href="classgstDecoder.html#a7d318a13d6f96d436d47e09e6722d740">Capture</a>( T** image, uint64_t timeout=UINT64_MAX )             { <span class="keywordflow">return</span> <a class="code" href="classgstDecoder.html#a7d318a13d6f96d436d47e09e6722d740">Capture</a>((<span class="keywordtype">void</span>**)image, imageFormatFromType&lt;T&gt;(), timeout); }</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgstDecoder.html#a7d318a13d6f96d436d47e09e6722d740">Capture</a>( <span class="keywordtype">void</span>** image, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format, uint64_t timeout=UINT64_MAX );</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgstDecoder.html#aab54dc71e937ed3e8ecd6fd129e16179">Open</a>();</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgstDecoder.html#a88ba5cb4519d8d50aaa3e28c9bf2c8f1">Close</a>();</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a4ce4a72e8d0303f15adee8d0bff2f9d2">   99</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classgstDecoder.html#a4ce4a72e8d0303f15adee8d0bff2f9d2">IsEOS</a>()<span class="keyword"> const                               </span>{ <span class="keywordflow">return</span> <a class="code" href="classgstDecoder.html#a2a9c9f5486d33efe5d8435dfb1776653">mEOS</a>; }</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classgstDecoder.html#ad9c4a4b64c50f8ae8712e3061e8a18df">  104</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">inline</span> uint32_t <a class="code" href="classgstDecoder.html#ad9c4a4b64c50f8ae8712e3061e8a18df">GetType</a>()<span class="keyword"> const         </span>{ <span class="keywordflow">return</span> <a class="code" href="classgstDecoder.html#a4ae2851033f43b2e70cb8f13f4331ac3">Type</a>; }</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a4ae2851033f43b2e70cb8f13f4331ac3">  109</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> uint32_t <a class="code" href="classgstDecoder.html#a4ae2851033f43b2e70cb8f13f4331ac3">Type</a> = (1 &lt;&lt; 1);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classgstDecoder.html#af3f60fa3ebece14ba29f4a869304e4b4">  122</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classgstDecoder.html#af3f60fa3ebece14ba29f4a869304e4b4">SupportedExtensions</a>[];</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classgstDecoder.html#af6e1fedc2e266c7a47442f206fc02a97">IsSupportedExtension</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* ext );</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <a class="code" href="classgstDecoder.html#a50f9a48e5530a3f8e145d4607ba9126d">gstDecoder</a>( <span class="keyword">const</span> <a class="code" href="structvideoOptions.html">videoOptions</a>&amp; options );</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        </div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classgstDecoder.html#a3c71328dbf87e491256076f2f5dd2d05">checkMsgBus</a>();</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classgstDecoder.html#a93a0f91ee9efba125384da10160b6d57">checkBuffer</a>();</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstDecoder.html#a34aa2ba174916bf11f6a6754035be07e">buildLaunchStr</a>();</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        </div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstDecoder.html#a0f0e18a067608c327752682ec123ad16">init</a>();</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstDecoder.html#a5c5f6f83bfac05602b825e1a94da5dc6">discover</a>();</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        </div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classgstDecoder.html#adbb1b42aab779fe3f5407991d914f5b9">  141</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classgstDecoder.html#adbb1b42aab779fe3f5407991d914f5b9">isLooping</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="classvideoSource.html#aa3c05686659fae747ff8709be2c9b445">mOptions</a>.<a class="code" href="structvideoOptions.html#aa8e394eb896dd92fd39c0946c10dd1ea">loop</a> &lt; 0) || ((<a class="code" href="classvideoSource.html#aa3c05686659fae747ff8709be2c9b445">mOptions</a>.<a class="code" href="structvideoOptions.html#aa8e394eb896dd92fd39c0946c10dd1ea">loop</a> &gt; 0) &amp;&amp; (<a class="code" href="classgstDecoder.html#a7bcc5a3d833e98ea5cb8e92a2f798dd5">mLoopCount</a> &lt; <a class="code" href="classvideoSource.html#aa3c05686659fae747ff8709be2c9b445">mOptions</a>.<a class="code" href="structvideoOptions.html#aa8e394eb896dd92fd39c0946c10dd1ea">loop</a>)); }</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classgstDecoder.html#a300bc3d37026eba2b16bc61c41882e18">onEOS</a>(_GstAppSink* sink, <span class="keywordtype">void</span>* user_data);</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        <span class="keyword">static</span> GstFlowReturn <a class="code" href="classgstDecoder.html#a646597459b872ae708921cd9acb96668">onPreroll</a>(_GstAppSink* sink, <span class="keywordtype">void</span>* user_data);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <span class="keyword">static</span> GstFlowReturn <a class="code" href="classgstDecoder.html#a475b8143fe06170402fe6d4a7d686cc9">onBuffer</a>(_GstAppSink* sink, <span class="keywordtype">void</span>* user_data);</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a34d6074626af52502232e50ce5565bac">  147</a></span>&#160;        _GstBus*     <a class="code" href="classgstDecoder.html#a34d6074626af52502232e50ce5565bac">mBus</a>;</div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a373c13d58980e4b64b728d20d933077c">  148</a></span>&#160;        _GstAppSink* <a class="code" href="classgstDecoder.html#a373c13d58980e4b64b728d20d933077c">mAppSink</a>;</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a588ff0205aa5767aaf8ec85e9928b172">  149</a></span>&#160;        _GstElement* <a class="code" href="classgstDecoder.html#a588ff0205aa5767aaf8ec85e9928b172">mPipeline</a>;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="comment">//gstCodec     mCodec;</span></div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        </div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a8aac851c5dfed057820cd55d8f3eced6">  152</a></span>&#160;        <a class="code" href="classEvent.html">Event</a>      <a class="code" href="classgstDecoder.html#a8aac851c5dfed057820cd55d8f3eced6">mWaitEvent</a>;</div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classgstDecoder.html#ad2ff5c79e0729805956352cdf6fbe719">  153</a></span>&#160;        <a class="code" href="classRingBuffer.html">RingBuffer</a>   <a class="code" href="classgstDecoder.html#ad2ff5c79e0729805956352cdf6fbe719">mBufferYUV</a>;</div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a2961aa30e74cbdaf1eeb0f1f1ab0a75c">  154</a></span>&#160;        <a class="code" href="classRingBuffer.html">RingBuffer</a>   <a class="code" href="classgstDecoder.html#a2961aa30e74cbdaf1eeb0f1f1ab0a75c">mBufferRGB</a>;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a1c556168206ada4fd590786368a70c1b">  156</a></span>&#160;        std::string  <a class="code" href="classgstDecoder.html#a1c556168206ada4fd590786368a70c1b">mLaunchStr</a>;</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a42f40dede8b2160e0c46abf817672ddc">  157</a></span>&#160;        <span class="keywordtype">bool</span>         <a class="code" href="classgstDecoder.html#a42f40dede8b2160e0c46abf817672ddc">mCustomSize</a>;</div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="classgstDecoder.html#ab167fae471c8406c627683ef7cd040ab">  158</a></span>&#160;        <span class="keywordtype">bool</span>               <a class="code" href="classgstDecoder.html#ab167fae471c8406c627683ef7cd040ab">mCustomRate</a>;</div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a2a9c9f5486d33efe5d8435dfb1776653">  159</a></span>&#160;        <span class="keywordtype">bool</span>         <a class="code" href="classgstDecoder.html#a2a9c9f5486d33efe5d8435dfb1776653">mEOS</a>;</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a7bcc5a3d833e98ea5cb8e92a2f798dd5">  160</a></span>&#160;        <span class="keywordtype">size_t</span>     <a class="code" href="classgstDecoder.html#a7bcc5a3d833e98ea5cb8e92a2f798dd5">mLoopCount</a>;</div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="classgstDecoder.html#a85967b91077556ab20301a62ab2e38f3">  161</a></span>&#160;        <span class="keywordtype">size_t</span>     <a class="code" href="classgstDecoder.html#a85967b91077556ab20301a62ab2e38f3">mFrameCount</a>;</div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classgstDecoder.html#aacff8b07ac2f17e7f457ed63df3c1f34">  162</a></span>&#160;        <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a>  <a class="code" href="classgstDecoder.html#aacff8b07ac2f17e7f457ed63df3c1f34">mFormatYUV</a>;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;};</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  </div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="videoSource_8h_html"><div class="ttname"><a href="videoSource_8h.html">videoSource.h</a></div></div>
<div class="ttc" id="RingBuffer_8h_html"><div class="ttname"><a href="RingBuffer_8h.html">RingBuffer.h</a></div></div>
<div class="ttc" id="classgstDecoder_html_a2961aa30e74cbdaf1eeb0f1f1ab0a75c"><div class="ttname"><a href="classgstDecoder.html#a2961aa30e74cbdaf1eeb0f1f1ab0a75c">gstDecoder::mBufferRGB</a></div><div class="ttdeci">RingBuffer mBufferRGB</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:154</div></div>
<div class="ttc" id="classgstDecoder_html_a300bc3d37026eba2b16bc61c41882e18"><div class="ttname"><a href="classgstDecoder.html#a300bc3d37026eba2b16bc61c41882e18">gstDecoder::onEOS</a></div><div class="ttdeci">static void onEOS(_GstAppSink *sink, void *user_data)</div></div>
<div class="ttc" id="classgstDecoder_html_a3c71328dbf87e491256076f2f5dd2d05"><div class="ttname"><a href="classgstDecoder.html#a3c71328dbf87e491256076f2f5dd2d05">gstDecoder::checkMsgBus</a></div><div class="ttdeci">void checkMsgBus()</div></div>
<div class="ttc" id="classgstDecoder_html"><div class="ttname"><a href="classgstDecoder.html">gstDecoder</a></div><div class="ttdoc">Hardware-accelerated video decoder for Jetson using GStreamer. </div><div class="ttdef"><b>Definition:</b> gstDecoder.h:50</div></div>
<div class="ttc" id="classgstDecoder_html_a34aa2ba174916bf11f6a6754035be07e"><div class="ttname"><a href="classgstDecoder.html#a34aa2ba174916bf11f6a6754035be07e">gstDecoder::buildLaunchStr</a></div><div class="ttdeci">bool buildLaunchStr()</div></div>
<div class="ttc" id="classgstDecoder_html_a88ba5cb4519d8d50aaa3e28c9bf2c8f1"><div class="ttname"><a href="classgstDecoder.html#a88ba5cb4519d8d50aaa3e28c9bf2c8f1">gstDecoder::Close</a></div><div class="ttdeci">virtual void Close()</div><div class="ttdoc">Close the stream. </div></div>
<div class="ttc" id="classgstDecoder_html_aab54dc71e937ed3e8ecd6fd129e16179"><div class="ttname"><a href="classgstDecoder.html#aab54dc71e937ed3e8ecd6fd129e16179">gstDecoder::Open</a></div><div class="ttdeci">virtual bool Open()</div><div class="ttdoc">Open the stream. </div></div>
<div class="ttc" id="classgstDecoder_html_ab167fae471c8406c627683ef7cd040ab"><div class="ttname"><a href="classgstDecoder.html#ab167fae471c8406c627683ef7cd040ab">gstDecoder::mCustomRate</a></div><div class="ttdeci">bool mCustomRate</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:158</div></div>
<div class="ttc" id="classgstDecoder_html_adbb1b42aab779fe3f5407991d914f5b9"><div class="ttname"><a href="classgstDecoder.html#adbb1b42aab779fe3f5407991d914f5b9">gstDecoder::isLooping</a></div><div class="ttdeci">bool isLooping() const</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:141</div></div>
<div class="ttc" id="structvideoOptions_html_aa8e394eb896dd92fd39c0946c10dd1ea"><div class="ttname"><a href="structvideoOptions.html#aa8e394eb896dd92fd39c0946c10dd1ea">videoOptions::loop</a></div><div class="ttdeci">int loop</div><div class="ttdoc">Control the number of loops for videoSource disk-based inputs (for example, the number of times that ...</div><div class="ttdef"><b>Definition:</b> videoOptions.h:106</div></div>
<div class="ttc" id="classgstDecoder_html_af3f60fa3ebece14ba29f4a869304e4b4"><div class="ttname"><a href="classgstDecoder.html#af3f60fa3ebece14ba29f4a869304e4b4">gstDecoder::SupportedExtensions</a></div><div class="ttdeci">static const char * SupportedExtensions[]</div><div class="ttdoc">String array of supported video file extensions, terminated with a NULL sentinel value. </div><div class="ttdef"><b>Definition:</b> gstDecoder.h:122</div></div>
<div class="ttc" id="classgstDecoder_html_a8aac851c5dfed057820cd55d8f3eced6"><div class="ttname"><a href="classgstDecoder.html#a8aac851c5dfed057820cd55d8f3eced6">gstDecoder::mWaitEvent</a></div><div class="ttdeci">Event mWaitEvent</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:152</div></div>
<div class="ttc" id="classgstDecoder_html_a2a9c9f5486d33efe5d8435dfb1776653"><div class="ttname"><a href="classgstDecoder.html#a2a9c9f5486d33efe5d8435dfb1776653">gstDecoder::mEOS</a></div><div class="ttdeci">bool mEOS</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:159</div></div>
<div class="ttc" id="classgstDecoder_html_a42f40dede8b2160e0c46abf817672ddc"><div class="ttname"><a href="classgstDecoder.html#a42f40dede8b2160e0c46abf817672ddc">gstDecoder::mCustomSize</a></div><div class="ttdeci">bool mCustomSize</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:157</div></div>
<div class="ttc" id="classgstDecoder_html_a588ff0205aa5767aaf8ec85e9928b172"><div class="ttname"><a href="classgstDecoder.html#a588ff0205aa5767aaf8ec85e9928b172">gstDecoder::mPipeline</a></div><div class="ttdeci">_GstElement * mPipeline</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:149</div></div>
<div class="ttc" id="classgstDecoder_html_a34d6074626af52502232e50ce5565bac"><div class="ttname"><a href="classgstDecoder.html#a34d6074626af52502232e50ce5565bac">gstDecoder::mBus</a></div><div class="ttdeci">_GstBus * mBus</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:147</div></div>
<div class="ttc" id="classgstDecoder_html_a7bcc5a3d833e98ea5cb8e92a2f798dd5"><div class="ttname"><a href="classgstDecoder.html#a7bcc5a3d833e98ea5cb8e92a2f798dd5">gstDecoder::mLoopCount</a></div><div class="ttdeci">size_t mLoopCount</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:160</div></div>
<div class="ttc" id="structURI_html"><div class="ttname"><a href="structURI.html">URI</a></div><div class="ttdoc">Resource URI of a video device, IP stream, or file/directory. </div><div class="ttdef"><b>Definition:</b> URI.h:91</div></div>
<div class="ttc" id="classgstDecoder_html_a4ae2851033f43b2e70cb8f13f4331ac3"><div class="ttname"><a href="classgstDecoder.html#a4ae2851033f43b2e70cb8f13f4331ac3">gstDecoder::Type</a></div><div class="ttdeci">static const uint32_t Type</div><div class="ttdoc">Unique type identifier of gstDecoder class. </div><div class="ttdef"><b>Definition:</b> gstDecoder.h:109</div></div>
<div class="ttc" id="classgstDecoder_html_a4ce4a72e8d0303f15adee8d0bff2f9d2"><div class="ttname"><a href="classgstDecoder.html#a4ce4a72e8d0303f15adee8d0bff2f9d2">gstDecoder::IsEOS</a></div><div class="ttdeci">bool IsEOS() const</div><div class="ttdoc">Return true if End Of Stream (EOS) has been reached. </div><div class="ttdef"><b>Definition:</b> gstDecoder.h:99</div></div>
<div class="ttc" id="classgstDecoder_html_a93a0f91ee9efba125384da10160b6d57"><div class="ttname"><a href="classgstDecoder.html#a93a0f91ee9efba125384da10160b6d57">gstDecoder::checkBuffer</a></div><div class="ttdeci">void checkBuffer()</div></div>
<div class="ttc" id="structvideoOptions_html"><div class="ttname"><a href="structvideoOptions.html">videoOptions</a></div><div class="ttdoc">The videoOptions struct contains common settings that are used to configure and query videoSource and...</div><div class="ttdef"><b>Definition:</b> videoOptions.h:37</div></div>
<div class="ttc" id="classgstDecoder_html_a0f0e18a067608c327752682ec123ad16"><div class="ttname"><a href="classgstDecoder.html#a0f0e18a067608c327752682ec123ad16">gstDecoder::init</a></div><div class="ttdeci">bool init()</div></div>
<div class="ttc" id="classgstDecoder_html_aacff8b07ac2f17e7f457ed63df3c1f34"><div class="ttname"><a href="classgstDecoder.html#aacff8b07ac2f17e7f457ed63df3c1f34">gstDecoder::mFormatYUV</a></div><div class="ttdeci">imageFormat mFormatYUV</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:162</div></div>
<div class="ttc" id="classgstDecoder_html_ad9c4a4b64c50f8ae8712e3061e8a18df"><div class="ttname"><a href="classgstDecoder.html#ad9c4a4b64c50f8ae8712e3061e8a18df">gstDecoder::GetType</a></div><div class="ttdeci">virtual uint32_t GetType() const</div><div class="ttdoc">Return the interface type (gstDecoder::Type) </div><div class="ttdef"><b>Definition:</b> gstDecoder.h:104</div></div>
<div class="ttc" id="classgstDecoder_html_a373c13d58980e4b64b728d20d933077c"><div class="ttname"><a href="classgstDecoder.html#a373c13d58980e4b64b728d20d933077c">gstDecoder::mAppSink</a></div><div class="ttdeci">_GstAppSink * mAppSink</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:148</div></div>
<div class="ttc" id="classgstDecoder_html_af6e1fedc2e266c7a47442f206fc02a97"><div class="ttname"><a href="classgstDecoder.html#af6e1fedc2e266c7a47442f206fc02a97">gstDecoder::IsSupportedExtension</a></div><div class="ttdeci">static bool IsSupportedExtension(const char *ext)</div><div class="ttdoc">Return true if the extension is in the list of SupportedExtensions. </div></div>
<div class="ttc" id="classgstDecoder_html_a7d318a13d6f96d436d47e09e6722d740"><div class="ttname"><a href="classgstDecoder.html#a7d318a13d6f96d436d47e09e6722d740">gstDecoder::Capture</a></div><div class="ttdeci">bool Capture(T **image, uint64_t timeout=UINT64_MAX)</div><div class="ttdoc">Capture the next decoded frame. </div><div class="ttdef"><b>Definition:</b> gstDecoder.h:72</div></div>
<div class="ttc" id="classvideoSource_html_aa3c05686659fae747ff8709be2c9b445"><div class="ttname"><a href="classvideoSource.html#aa3c05686659fae747ff8709be2c9b445">videoSource::mOptions</a></div><div class="ttdeci">videoOptions mOptions</div><div class="ttdef"><b>Definition:</b> videoSource.h:310</div></div>
<div class="ttc" id="classgstDecoder_html_a50f9a48e5530a3f8e145d4607ba9126d"><div class="ttname"><a href="classgstDecoder.html#a50f9a48e5530a3f8e145d4607ba9126d">gstDecoder::gstDecoder</a></div><div class="ttdeci">gstDecoder(const videoOptions &amp;options)</div></div>
<div class="ttc" id="classgstDecoder_html_ad2ff5c79e0729805956352cdf6fbe719"><div class="ttname"><a href="classgstDecoder.html#ad2ff5c79e0729805956352cdf6fbe719">gstDecoder::mBufferYUV</a></div><div class="ttdeci">RingBuffer mBufferYUV</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:153</div></div>
<div class="ttc" id="classgstDecoder_html_a1c556168206ada4fd590786368a70c1b"><div class="ttname"><a href="classgstDecoder.html#a1c556168206ada4fd590786368a70c1b">gstDecoder::mLaunchStr</a></div><div class="ttdeci">std::string mLaunchStr</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:156</div></div>
<div class="ttc" id="classgstDecoder_html_a0e13e2625f959c1e612cb90e3d5720d0"><div class="ttname"><a href="classgstDecoder.html#a0e13e2625f959c1e612cb90e3d5720d0">gstDecoder::~gstDecoder</a></div><div class="ttdeci">~gstDecoder()</div><div class="ttdoc">Destructor. </div></div>
<div class="ttc" id="Event_8h_html"><div class="ttname"><a href="Event_8h.html">Event.h</a></div></div>
<div class="ttc" id="classEvent_html"><div class="ttname"><a href="classEvent.html">Event</a></div><div class="ttdoc">Event object for signalling other threads. </div><div class="ttdef"><b>Definition:</b> Event.h:33</div></div>
<div class="ttc" id="classgstDecoder_html_a646597459b872ae708921cd9acb96668"><div class="ttname"><a href="classgstDecoder.html#a646597459b872ae708921cd9acb96668">gstDecoder::onPreroll</a></div><div class="ttdeci">static GstFlowReturn onPreroll(_GstAppSink *sink, void *user_data)</div></div>
<div class="ttc" id="gstUtility_8h_html"><div class="ttname"><a href="gstUtility_8h.html">gstUtility.h</a></div></div>
<div class="ttc" id="classgstDecoder_html_aa21be1ad8be0516974b4507cb49d4fbe"><div class="ttname"><a href="classgstDecoder.html#aa21be1ad8be0516974b4507cb49d4fbe">gstDecoder::Create</a></div><div class="ttdeci">static gstDecoder * Create(const videoOptions &amp;options)</div><div class="ttdoc">Create a decoder from the provided video options. </div></div>
<div class="ttc" id="classRingBuffer_html"><div class="ttname"><a href="classRingBuffer.html">RingBuffer</a></div><div class="ttdoc">Thread-safe circular ring buffer queue. </div><div class="ttdef"><b>Definition:</b> RingBuffer.h:33</div></div>
<div class="ttc" id="classgstDecoder_html_a85967b91077556ab20301a62ab2e38f3"><div class="ttname"><a href="classgstDecoder.html#a85967b91077556ab20301a62ab2e38f3">gstDecoder::mFrameCount</a></div><div class="ttdeci">size_t mFrameCount</div><div class="ttdef"><b>Definition:</b> gstDecoder.h:161</div></div>
<div class="ttc" id="classgstDecoder_html_a5c5f6f83bfac05602b825e1a94da5dc6"><div class="ttname"><a href="classgstDecoder.html#a5c5f6f83bfac05602b825e1a94da5dc6">gstDecoder::discover</a></div><div class="ttdeci">bool discover()</div></div>
<div class="ttc" id="structvideoOptions_html_a99a95e988dcf46c0e9177abc7217cf8f"><div class="ttname"><a href="structvideoOptions.html#a99a95e988dcf46c0e9177abc7217cf8f">videoOptions::Codec</a></div><div class="ttdeci">Codec</div><div class="ttdoc">Video codec types. </div><div class="ttdef"><b>Definition:</b> videoOptions.h:177</div></div>
<div class="ttc" id="classvideoSource_html"><div class="ttname"><a href="classvideoSource.html">videoSource</a></div><div class="ttdoc">The videoSource API is for capturing frames from video input devices such as MIPI CSI cameras...</div><div class="ttdef"><b>Definition:</b> videoSource.h:112</div></div>
<div class="ttc" id="classgstDecoder_html_a475b8143fe06170402fe6d4a7d686cc9"><div class="ttname"><a href="classgstDecoder.html#a475b8143fe06170402fe6d4a7d686cc9">gstDecoder::onBuffer</a></div><div class="ttdeci">static GstFlowReturn onBuffer(_GstAppSink *sink, void *user_data)</div></div>
<div class="ttc" id="group__imageFormat_html_ga931c48e08f361637d093355d64583406"><div class="ttname"><a href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a></div><div class="ttdeci">imageFormat</div><div class="ttdoc">The imageFormat enum is used to identify the pixel format and colorspace of an image. </div><div class="ttdef"><b>Definition:</b> imageFormat.h:49</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="gstDecoder_8h.html">gstDecoder.h</a></li>
    <li class="footer">Generated on Tue Jul 14 2020 21:59:34 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
